{include file='imobile_header.tpl'}

<div id="topbar">
	<div id="leftnav"> 
		<a href="user_messages.php">{lang_print id=780}</a>
	</div> 
	<div id="title"> 
		{lang_print id=11340040}
	</div> 
	<div id="bluerightbutton"><a href='user_messages_view.php?pmconvo_id={$pmconvo_info.pmconvo_id}&task=delete'>{lang_print id=11340041}</a></div>
</div>

<div id="contentlist">

	<div class="title">{$pmconvo_info.pmconvo_subject|truncate:40:"...":true}</div>
	{capture assign='collaborators'}{section name=coll_loop loop=$collaborators}<a href='{$url->url_create("profile", $collaborators[coll_loop]->user_info.user_username)}'>{$collaborators[coll_loop]->user_displayname}</a>{if $smarty.section.coll_loop.last != TRUE}, {/if}{/section}{/capture}
	<div class="descbox">{lang_sprintf id=801 1=$collaborators}</div>
	<ul class="messages message_view">
	{section name=pm_loop loop=$pms}
		<li class="message">
			<img class='icon' src='{$pms[pm_loop].author->user_photo("./images/nophoto.gif", TRUE)}' class='icon' border='0'>
            <span class="name"><a href='{$url->url_create("profile",$pms[pm_loop].author->user_info.user_username)}'>{$pms[pm_loop].author->user_displayname}</a></span>
            <span class="comment">{$pms[pm_loop].pm_body|choptext:45:"<br>"}</span>
            <span class="date">{$datetime->cdate("`$setting.setting_timeformat` `$setting.setting_dateformat`", $datetime->timezone($pms[pm_loop].pm_date, $global_timezone))}</span>    
		</li>
	{/section}
	</ul>
	
		<ul class="pageitem">
			<li class="feed">
				<img src='./images/icons/action_postcomment.gif' border='0' class='icon'/ >
				<div class="action">{if $collaborators|@count == 1}{lang_print id=802}{else}{lang_print id=803}{/if}</div>
			</li>

			<li class="textbox" id="post_comment_form" style="display: nonex;">
				  <div id='reply_error' style='display: none;'>{lang_print id=796}</div>
				  {if $blockerror}<div id='reply_error2' style='display: {$blockerror};'>{lang_print id=1321}</div>{/if}

				  <form action='user_messages_view.php#bottom' method='POST' onSubmit="{literal}if(this.reply.value.replace(/ /g, '') == '') { $('reply_error').style.display='block'; return false; } else { return true; }{/literal}">
				<textarea name='reply' id='reply_body' rows="4" placeholder="Write something .."></textarea>
				
				<input type='submit' class='iPush' name="submit" value='{lang_print id=791}'>
  				<input type='hidden' name='task' value='reply'>
  				<input type='hidden' name='pmconvo_id' value='{$pmconvo_info.pmconvo_id}'>
				</form>
			</li>
		</ul>	
	
</div>


{include file='imobile_footer.tpl'}